package org.jeecg.modules.inspection.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.jeecg.modules.inspection.entity.InspectionException;
import org.springframework.stereotype.Repository;


/**
 * @Description: 1
 * @Author: jeecg-boot
 * @Date:   2019-09-25
 * @Version: V1.0
 */
@Repository
public interface InspectionExceptionMapper extends BaseMapper<InspectionException> {
    @Select("select count(0) from set_inspection_exception where office_id = #{officeId} and recive_type=#{reciveType} and del_flag='0'")
    Integer selectByOffice(@Param("officeId") String officeId,@Param("reciveType") Integer reciveType);
}
